﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


using System.ComponentModel.DataAnnotations;
using Wedo.Domain.Models;
using System.ComponentModel;



namespace Wedo.Recognition.Domain.Models
{
    /// <summary>
    /// 收款凭证
    /// </summary>
    [System.ComponentModel.DisplayName("收款凭证")]
    public class GenerateRecieve : Entity
   {
        /// <summary>
        /// 收款凭证时间
        /// </summary>
        //[DataColumn(10, 150)]
        [DisplayName( "收款凭证时间")]
        public DateTime GenerateRecieveDate { set; get; }

        /// <summary>
        /// 到账时间
        /// </summary>
        [DisplayName( "到账时间")]
        public DateTime AccountDate { get; set; }

        /// <summary>
        /// 文件
        /// </summary>
        //[DataColumn(20, 150, Formatter = "{reportformatter}")]
        [DisplayName( "文件")]
        public string GenerateRecieveFileName { set; get; }

        private string _fileName;
        public string FileName()
        {
            if (_fileName == null)
                _fileName = System.IO.Path.GetFileName(GenerateRecieveFileName);
            return _fileName;
        }
    }
}
